/**********************************************************/
/* Goblin Defense - A tower defense game for Wii Homebrew */
/* Copyright (C) 2009 Ricardo Bueno Cordeiro              */
/* Licensed under de GNU General Public License v2.0      */
/*   See license_gplv2.txt for detalis                    */
/**********************************************************/

#ifndef __GAME_H_
#define __GAME_H_

#include <gccore.h>

#include "control_base.h"
#include "map.h"
#include "toolbox.h"

class Game : public ControlBase {
private:
	int cursor_valid;
	f32 cursor_x, cursor_y;
	f32 cursor_angle;

	Map map;
	Toolbox toolbox;

public:
	Game();
	
	int update(int state, u32 step, WPADData *wiimote_data);
	void draw(int state);
	void text(int state);

	void start_game(int map);

	Map *get_map() { return &map; }
	Toolbox *get_toolbox() { return &toolbox; }
};

#endif
